<?php$connect = mysql_connect('localhost','root','');mysql_select_db("ajax_form");?><?phpif(isset($_POST['formlist1']))             {$id = $_GET['id'];$username1 = $_POST['username1'];$insert = "UPDATE userlist SET username='$username1' where userid='$id'";$iq = mysql_query($insert);}$select = "SELECT * from userlist";$sq = mysql_query($select);?><table cellspacing="0" border="1"><tr><td>Username</td><td></td><td><a href="javascript:void(0)" id="add">ADD</a></td></tr><?php while($row = mysql_fetch_array($sq)){?><tr><td><?php echo $row['username']; ?></td><td><a href="javascript:void(0)" id="edit" class="<?php echo $row['userid']; ?>">EDIT</a></td><td><a href="javascript:void(0)" id="delete"class="<?php echo $row['userid']; ?>">DELETE</a></td></tr><?php }?></table>